package com.egg.ylt.activity;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;

import com.egg.ylt.R;
import com.egg.ylt.Utils.GlideUtils;
import com.yonyou.framework.library.base.BaseActivity;
import com.yonyou.framework.library.bean.ErrorBean;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created By Dlx
 * on 2019/1/22
 */
public class ACT_BigSinglePic extends BaseActivity {
    private static final String TAG = "ACT_BigSinglePic";
    @BindView(R.id.act_singlepic_big_iv)
    ImageView singlepicBigIv;
    private String imgUrl;

    @Override
    protected boolean isApplyKitKatTranslucency() {
        return false;
    }

    @Override
    protected void getBundleExtras(Bundle extras) {

    }

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.act_singlepic_big;
    }

    @Override
    protected View getLoadingTargetView() {
        return null;
    }

    @Override
    protected void initViewsAndEvents() {
        imgUrl = getIntent().getStringExtra("big_single_pic");
        GlideUtils.loadIntoUseFitWidth(this, imgUrl, R.mipmap.ic_serve_default, singlepicBigIv);
//        Glide.with(this).load(url).centerCrop().into(singlepicBigIv);
    }

    @Override
    protected boolean isApplyStatusBarTranslucency() {
        return false;
    }

    @Override
    protected boolean isBindEventBusHere() {
        return false;
    }

    @Override
    protected boolean toggleOverridePendingTransition() {
        return false;
    }

    @Override
    protected TransitionMode getOverridePendingTransitionMode() {
        return null;
    }

    @Override
    public void showBusinessError(ErrorBean error) {

    }
}
